﻿namespace ClassyBlog.Web
{
    using System;
    using System.IO;
    using System.Web;
    using System.Web.Mvc;
    using System.Web.Routing;

    using Infrastructure;

    public class MvcApplication : HttpApplication
    {
        protected void Application_Start()
        {
            new ServiceRegistrations(
                Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data"),
                ServiceContainer.Current).Register();

            new GlobalFilterRegistrations(GlobalFilters.Filters).Register();
            new RouteRegistrations(RouteTable.Routes).Register();
            new ViewEngineRegistrations(ViewEngines.Engines).Register();
        }
    }
}